package com.nf.health.app.intervention_details.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.nf.health.app.R;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * Created by 恩福 on 2016/11/10.
 * 个人健康信息汇总 检测结果 Adapter
 *
 * @auther changpeng
 * @email obj_cp@126.com
 */

public class HealthInfoSchemeAdapter extends RecyclerView.Adapter {
    private Context mContext;

    public HealthInfoSchemeAdapter(Context context) {
        this.mContext = context;
    }

    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(mContext).inflate(R.layout.health_info_scheme_result_item, parent, false);

        return new HealthInfoSchemeViewHolder(view);
    }

    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
        HealthInfoSchemeViewHolder viewHolder = (HealthInfoSchemeViewHolder) holder;
    }

    @Override
    public int getItemCount() {
        return 3;
    }

    class HealthInfoSchemeViewHolder extends RecyclerView.ViewHolder {
        @Bind(R.id.tv_target)
        TextView tvTarget;
        @Bind(R.id.tv_new_result)
        TextView tvNewResult;
        @Bind(R.id.tv_reference)
        TextView tvReference;

        public HealthInfoSchemeViewHolder(View itemView) {
            super(itemView);
            ButterKnife.bind(this, itemView);
        }
    }
}
